<?php

include("inc/joomlaInt.php");
include("inc/inc_configuration.php");

if ($jUser==0)
{
	echo "Bitte zuerst einloggen!";
}
else
{

echo "<table border='1'><tr><td>Liga</td><td>Min</td><td>Free</td><td>Deadline</td></tr>";

$q = "	SELECT
			f.min AS min, f.free, f.deadline, l.name AS name
		FROM $tbl_free f, $tbl_leagues l
		WHERE
			f.leagueId=l.id";
$qe = mysql_query($q);

while ($row = mysql_fetch_object($qe))
{

	$tDate=$row->deadline;
	$zeit = date("d.m.Y - H:i",$tDate);
	
	echo "	<tr>
				<td>",$row->name,"</td>
				<td>",$row->min,"</td>
				<td>",$row->free,"</td>
				<td>",$zeit,"</td>
			</tr>";
}
echo "</table>";
}


?>